package com.crm.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * @author junxian.dou
 * @Package：com.crm.vo
 * @Project：springboot-crm
 * @name：PageBean
 * @Date：2024/12/4 17:53
 * @Filename：PageBean
 * @verson 1.0.0
 * @desc
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PageBean<T> {

    private int pageNum; // 第几页
    private int pageSize; // 每页记录数
    private int start;  // 起始页
    private Map<String,String> query; // 查询参数

    private long total;
    private List<T> tList;

    public PageBean(long total, List<T> tList) {
        this.total = total;
        this.tList = tList;
    }
}
